package com.qmerak.service;

import java.util.List;

import org.springframework.ui.ModelMap;

import com.qmerak.entity.MemberEntity;
import com.qmerak.entity.OrgEntity;

/**
 * @author Shaohong•Cheng
 * @mail shaohong726@126.com
 * @date 2013-4-14
 * @project WebTest
 */
public interface IMemberService {
	public MemberEntity add(MemberEntity entity);

	public void initPWD(MemberEntity entity);

	public MemberEntity find(MemberEntity entity);

	public MemberEntity find(String id);

	public MemberEntity findByLoginName(MemberEntity entity);

	public void delete(MemberEntity entity);

	public void update(MemberEntity entity);

	public void updateAll(MemberEntity entity);

	public void updateStatus(MemberEntity entity, MemberEntity loginMember);

	public List<MemberEntity> list();

	public List<MemberEntity> findMembers();

	public boolean verifyIDNumber(MemberEntity memberEntity);

	public boolean verify(MemberEntity userBean, ModelMap modelMap);

	public List<MemberEntity> listOfOrg(OrgEntity orgEntity);

	public List<MemberEntity> listOfOrg(OrgEntity orgEntity, String condition);

	public List<MemberEntity> loginingMemberOf(OrgEntity orgEntity);

	public List<MemberEntity> logoffingMemberOf(OrgEntity orgEntity);

	public List<MemberEntity> unionChangingMemberOf(OrgEntity orgEntity);

}
